//    Copyright (C) Kherty.  All rights reserved.
using OpenLS.Core.Serialization;

namespace OpenLS.Drawing
{
    public class TextBulletSizePercent : TextBulletSize
    {
        private int percent;

        public int Percent
        {
            get { return percent; }
            set { percent = value; }
        }

        internal override void ReadXmlCore(ReadContext context)
        {
            using (var c = context.Read("buSzPct"))
            {
                Percent = c.GetInteger("val");
            }
        }

        internal override void WriteXmlCore(WriteContext context)
        {
            using (WriteContext c = context.Write("buSzPct"))
            {
                c.SetInteger("val", Percent);
            }
        }
    }
}